﻿<div class="search-page">
    <h2>共有{{paginationConf.totalItems}}条公文</h2>
    <div class="search">
        <div class="search-condition">
            <div class="form-inline">
                <div class="form-group">
                    <label for="sfwrq">指派日期：</label>
                    <input type="text" class="form-control select-date form-control-sm middle" id="createTime" readonly="readonly" ng-model="sfwrq">
                    <input type="text" class="hide" id="sfwrqStart" ng-model="pageSearch.StartTime">
                    <input type="text" class="hide" id="sfwrqEnd" ng-model="pageSearch.EndTime">
                </div>
                <div class="form-group">
                    <label for="wkfType">超时时长：</label>
                    <select class="form-control form-control-sm" id="wkfType" ng-init="pageSearch.DelayTime = DelayTimeList[0].value" ng-model="pageSearch.DelayTime">
                        <option ng-repeat="item in DelayTimeList" value="{{item.value}}">{{item.text}}</option>
                    </select>
                </div>
            </div>
            <div class="search-action">
                <button type="submit" class="btn btn-default btn-sm btn-search" ng-click="onReset()">重置</button>
                <button type="submit" class="btn btn-info btn-sm btn-search" ng-click="onSearch()">查询</button>
            </div>
        </div>
    </div>
    <table class="table">
        <thead>
            <tr>
                <th>序号</th>
                <th>上级部门</th>
                <th>子部门</th>
                <th>超时次数</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-if="activeTableData.length > 0" ng-repeat="row in activeTableData">
                <td>{{($index+1)+(pageSearch.PageNumber-1)*pageSearch.PageSize}}</td>
                <td>{{row.ParentDeptName}}</td>
                <td>{{row.DeptName}}</td>
                <td>{{row.Times}}</td>
                <td><a href="javascript:void(0)" ng-click="showHistory(row.DeptID)">查看详情</a></td>
            </tr>
            <tr ng-if="!activeTableData.length">
                <td colspan="{{titleObj.length}}">无数据</td>
            </tr>
        </tbody>
    </table>
    <tm-pagination conf="paginationConf"></tm-pagination>
</div>
<div id="dlg-date-selector2" class="div-dlg">
    从：<input type="text" id="date-from2" class="date-value" /><br />
    <br />
    至：<input type="text" id="date-to2" class="date-value" />
</div>
<!-- 超时记录 -->
<div id="dlgHistory" class="ui-dialog-content ui-widget-content" scrolltop="0" scrollleft="0" style="display: block; width: auto; min-height: 0px; height: 557px;">
</div>